home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-06-02 | 1.6 KB | 71 lines |
- # Windows Dialogs
- # Makefile
-
- #Remove '#' from next line for "silent" operation
- !CMDSWITCHES +s
-
-
- #
- #Compiler flags
- #Use "SET RETAIL=1" from MS-DOS to compile non-debug version.
- #
- !ifndef RETAIL
- CFLAGS = -c -Od -AS -Zipe -G2sw -W3
- DEFS=-DDEBUG
- !else
- CFLAGS = -c -Oas -AS -Zpe -G2sw -W3
- DEFS=
- !endif
-
-
- #Files on which every C file depends. Add others as appropriate
- INCLS=dialogs.h
-
- .SUFFIXES: .h .c .asm .obj .exe .cxx .res .rc .bas
-
- goal: dialogs.exe
-
-
- OBJS =dialogs.obj color.obj file.obj font.obj print.obj search.obj
- RCFILES=dialogs.ico select.dlg color.dlg
-
- #####
-
- .c.obj:
- echo ++++++++++
- echo Compiling $*.c
- cl $(CFLAGS) $(DEFS) $*.c
-
- .rc.res:
- echo +++++++++
- echo Compiling Resources
- rc -r $*.rc
-
- #This rule builds a linker response file on the fly depending on debug flags
- dialogs.exe : $(OBJS) dialogs.res
- echo dialogs color file font print search > dialogs.lrf
-
- !ifndef RETAIL
- echo dialogs/al:16/CO >> dialogs.lrf
- !else
- echo dialogs/al:16 >> dialogs.lrf
- !endif
-
- echo /map/li >> dialogs.lrf
- echo libw slibcew commdlg/NOD/NOE >> dialogs.lrf
- echo dialogs.def >> dialogs.lrf
-
- link @dialogs.lrf
- rc dialogs.res
-
-
- ##### Dependencies #####
-
- dialogs.obj : dialogs.c $(INCLS)
- color.obj : color.c $(INCLS)
- font.obj : font.c $(INCLS)
- file.obj : file.c $(INCLS)
- print.obj : print.c $(INCLS)
- search.obj : search.c $(INCLS)
- dialogs.res : dialogs.rc $(INCLS) $(RCFILES)
-